package flyweight;

/**
 * @author : DuJiabao
 * @Date : 2021/3/3 22:57
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
// 单个棋子的样式
public class ChessPieceUnit {
  private int id;
  private String text;
  private Color color;

  public ChessPieceUnit(int id, String text, Color color) {
    this.id = id;
    this.text = text;
    this.color = color;
  }

  public static enum Color {
    RED, BLACK;
  }
}
